﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace integrationServer
{
    class Program
    {
        static void Main(string[] args)
        {
            // The httpServer
            HttpServer httpServer = null;

            // Need the Ip Address and the port
            httpServer = new HttpServer("192.168.0.23", 8080);

            // Class of ludo => call to load data
            Form1 loadData = new Form1();
            loadData.ChargementDonnee();

            // The server listen in a thread
            Thread thread = new Thread(new ThreadStart(httpServer.listen));
            
            Console.WriteLine("Listen ...");
            
            // Start the thread
            thread.Start();

            Console.ReadKey();
        }
    }
}
